frappe.pages['layui-2'].on_page_load = function(wrapper) {
	var page = frappe.ui.make_app_page({
		parent: wrapper,
		title: 'layui综合演示',
		single_column: true
	});	
	page.add_inner_button('刷新', () => console.log("no action"));
	console.log(page);
	//$("head").append("<link rel='stylesheet' href='/assets/frappe_study/lib/layui/css/layui.css'>");	
	//$("<div id='layui2_here'></div>").appendTo(page.main);
	//$("#layui2_here").load("/assets/frappe_study/pages/layui2.html");
	page.main.load("/assets/frappe_study/pages/layui2.html",function(){
		console.log("tpl加载完成!");
		renderAll();
	});
}
